package g11.dao;

import g11.model.Visitation;
import g11.model.VisitationContent;

import java.util.List;

public interface VisitationContentDAO {
	public Integer createVisitationContent(VisitationContent visitationContent)
			throws DAOException;

	/*
	 * public Visitation createVisitationContentWithVersion( VisitationContent
	 * visitationContent) throws DAOException;
	 */

	public VisitationContent getCurrentVisitationContent(Visitation visitation)
			throws DAOException;

	public VisitationContent getVisitationContentById(
			Integer visitationContentId) throws DAOException;

	public List<VisitationContent> getVisitationContentByVisitation(
			Visitation visitation) throws DAOException;

	// used for generating new version number
	public int getLatestVersionOfVisitationContent(Visitation visitation)
			throws DAOException;

	// public void deleteVisitationContentByVisitation(Visitation visitation)
	// throws DAOException;

	public void deleteVisitationContent(VisitationContent visitationContent)
			throws DAOException;

	// attribute: 0:diagnosis, 1:treatment, 2:comment, 3:patient name
	public List<VisitationContent> getVisitationContentByKeyword(
			String keyword, int Attribute) throws DAOException;

}
